package com.bootdo.blog.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.blog.dao.SeedlingMapper;
import com.bootdo.blog.domain.SeedlingDO;
import com.bootdo.blog.service.SeedlingService;



@Service
public class SeedlingServiceImpl implements SeedlingService {
	@Autowired
	private SeedlingMapper seedlingMapper;
	
	@Override
	public SeedlingDO get(Integer seedId){
		return seedlingMapper.get(seedId);
	}
	
	@Override
	public List<SeedlingDO> list(Map<String, Object> map){
		return seedlingMapper.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return seedlingMapper.count(map);
	}
	
	@Override
	public int save(SeedlingDO seedling){
		return seedlingMapper.save(seedling);
	}
	
	@Override
	public int update(SeedlingDO seedling){
		return seedlingMapper.update(seedling);
	}
	
	@Override
	public int remove(Integer seedId){
		return seedlingMapper.remove(seedId);
	}
	
	@Override
	public int batchRemove(Integer[] seedIds){
		return seedlingMapper.batchRemove(seedIds);
	}
	
}
